/**
   JavaServer Faces in Action example code, Copyright (C) 2004 Kito D. Mann.

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

**/

package webidewar;

import javax.faces.context.FacesContext;
import java.util.Locale;
import javax.faces.model.SelectItem;
import javax.faces.application.Application;
import java.util.*;
import org.WebIDE.ejb.entities.*;
import java.io.Serializable;

public class Visit implements Serializable
{
  private Users user;
  private Projects currentProject;
  private List localeItems;
  private auth auth;

  public Visit()
  {
  }

  public Users getUser()
  {
    return user;
  }

  public void setUser(Users user)
  {
    this.user = user;
  }

  public Projects getCurrentProject()
  {
    return currentProject;
  }

  public void setCurrentProject(Projects currentProject)
  {
    this.currentProject = currentProject;
  }

  public auth getAuth()
  {
    return auth;
  }

  public void setAuth(auth auth)
  {
    this.auth = auth;
  }

  // End demonstration methods

  public String getLocale()
  {
    return FacesContext.getCurrentInstance().getViewRoot().getLocale().toString();
  }

  public void setLocale(String locale)
  {
    FacesContext.getCurrentInstance().getViewRoot().setLocale(new Locale(locale));
  }
}
